import MarketingTool from "@/views/marketingTool/MarketingTool.vue"

export default [
  {
    path: "/merchant/marketingTool",
    meta: {
      title: "营销工具",
      noChild: false,
      needLogin: true,
      keepAlive: true,
    },
    component: MarketingTool,
    children: [
      {
        path: "coupon_manage",
        component: () => import("@/views/marketingTool/CouponManage.vue"),
        meta: {
          title: "优惠券管理",
          noChild: false,
          needLogin: true,
          keepAlive: true,
        },
      },
      {
        path: "coupon_manage/edit",
        name: "CouponManageEdit",
        component: () => import("@/views/marketingTool/CouponEdit.vue"),
        meta: {
          title: "优惠券编辑",
          noChild: false,
          needLogin: true,
          keepAlive: false,
        },
      },
      {
        path: "coupon_manage/create",
        name: "CouponManageCreate",
        component: () => import("@/views/marketingTool/CouponEdit.vue"),
        meta: {
          title: "优惠券新增",
          noChild: false,
          needLogin: true,
          keepAlive: false,
        },
      },
      {
        path: "coupon_batch_manage",
        component: () => import("@/views/marketingTool/CouponBatchManage.vue"),
        meta: {
          title: "优惠券批次管理",
          noChild: false,
          needLogin: true,
          keepAlive: false,
        },
      },
      {
        path: "coupon_batch_manage/create",
        component: () => import("@/views/marketingTool/CouponBatchEdit.vue"),
        meta: {
          title: "优惠券批次新增",
          noChild: false,
          needLogin: true,
          keepAlive: false,
        },
      },
      {
        path: "coupon_batch_manage/edit",
        component: () => import("@/views/marketingTool/CouponBatchEdit.vue"),
        meta: {
          title: "优惠券批次编辑",
          noChild: true,
          needLogin: true,
          keepAlive: false,
        },
      },
      {
        path: "coupon_claim_manage",
        component: () => import("@/views/marketingTool/CouponClaimManage.vue"),
        meta: {
          title: "优惠券领取明细",
          noChild: false,
          needLogin: true,
          keepAlive: true,
        },
      }
    ]
  }
]